package Page.BiggerDetailPage;

import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
import javafx.scene.text.Text;

import java.net.URL;
import java.util.ResourceBundle;

public class BiggerDetailPageController implements Initializable {
    @FXML
    public Text AContent;
    @FXML
    public Label ATime;
    @FXML
    public Text ATitle;


    @Override
    public void initialize(URL location, ResourceBundle resources) {
        ATitle.textProperty().bind(BiggerDetailPageViewModel.getViewModel().getATitleProperty());
        ATime.textProperty().bind(BiggerDetailPageViewModel.getViewModel().getATimeProperty());
        AContent.textProperty().bindBidirectional(BiggerDetailPageViewModel.getViewModel().getAContentProperty());
    }

    public void setATitle(String ATitle) {
        this.ATitle.setText(ATitle);
    }

    public void setAContent(String AContent) {
        this.AContent.setText(AContent);
    }

    public void setATime(String ATime) {
        this.ATime.setText(ATime);
    }
}
